<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<title>服务网点</title
><link href="{MODULE_URL}images/css/owl.carousel.css" rel="stylesheet">
<link href="{MODULE_URL}images/css/public.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/css/index.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/weui.css" rel="stylesheet" type="text/css" />
<link href="{MODULE_URL}images/weui2.css" rel="stylesheet" type="text/css" />
<script src="{MODULE_URL}images/js/jquery-1.8.3.min.js"></script>
<script src="{MODULE_URL}images/js/owl.carousel.min.js"></script>
<script src="{MODULE_URL}images/layer/layer.js"></script>
<script src="{MODULE_URL}images/zepto.min.js"></script>
</head>

<body>

<div class="mobile">
  <div class="header middle center">
      {$title}
    </div>
  <div class="m_baoliao w" style="padding-bottom: 55px">    
    <div class="baoliao_list" style="width:100%">
{if $op == 'display'}
    {loop $business $business}  
   {php $pic = iunserializer($business['logo'])}
  
              <section class="good">
                  <a  href="{php echo $this->createMobileUrl('Mybusiness', array('op'=>'edit','id'=>$business['id']));}" class="good-content">
                  <div class="img-wrapper">
                  <div class="img-placeholder">
                  <img width="120" height="72" data-role="deal-img" src="{php echo tomedia($pic['0'])}" style="visibility: visible;">
                  </div>
                  <span class="tag reservation"></span>                  
                  </div>
                  <div class="info-wrapper">
                  <div class="title-line ">
                  <div class="title">
                  <h3 class="item-name">{$business['title']}</h3></div>
                  <span class="distance"></span>
                  <span class="store">{$categories[$business['categoryid']]['name']}</span>
                  </div>
                  <p class="desc">{$business['desc']}...</p>
                  <p class="price-line">
                  查看详情 
                  <span class="bought">已看{$business['click']}次</span>
                  </p>
                  </div>
                  </a>
        </section>
    {/loop}
{/if}
{if $op == 'wx'}
    {loop $business $business}  
   
  
              <section class="good">
                  <a  href="{php echo $this->createMobileUrl('Mybusiness', array('op'=>'weixin','id'=>$business['id']));}" class="good-content">
                  <div class="img-wrapper">
                  <div class="img-placeholder">
                  <img width="120" height="72" data-role="deal-img" src="{php echo tomedia($business['ewm'])}" style="visibility: visible;">
                  </div>
                  <span class="tag reservation"></span>                  
                  </div>
                  <div class="info-wrapper">
                  <div class="title-line ">
                  <div class="title">
                  <h3 class="item-name">{$business['nickname']}</h3></div>
                  <span class="distance"></span>
                  <span class="store"></span>
                  </div>
                  <p class="desc">{$business['yjh']}</p>
                  <p class="price-line">                   
                  <span class="bought">点击修改</span>
                  </p>
                  </div>
                  </a>
        </section>
    {/loop}
{/if}

    </div>
   
  </div>
 {template 'footer'}

</div>
<div class="gotop backtop" style="display:none;"></div>

</body>
</html>
<script type="text/javascript">
//返回顶部
$(document).ready(function(){
  $(window).scroll(function () {
    var scrollHeight = $(document).height();
    var scrollTop = $(window).scrollTop();
    var $windowHeight = $(window).innerHeight();
    scrollTop > 75 ? $(".gotop").fadeIn(200).css("display","block") : $(".gotop").fadeOut(200).css({"background-image":"url({MODULE_URL}images/images/iconfont-fanhuidingbu.png)"});
  });
  $('.backtop').click(function (e) {
    $(".gotop").css({"background-image":"url(images/iconfont-fanhuidingbu_up.png)"});
    e.preventDefault();
    $('html,body').animate({ scrollTop:0});
  });
});
</script>